package com.game.game;

import java.util.ArrayList;

import com.game.bean.User;

public class Game {

	User owner;
	ArrayList<User> seat;
	int maxCount;

	private int gameID;

	public Game() {
		maxCount = 2;
	}

	public void create(User user) {
		seat = new ArrayList<User>();
		owner = user;
		seat.add(user);
	}

	public User getOwner() {
		return owner;
	}

	public boolean addUser(User user) {
		if (seat.size() >= maxCount) {
			return false;
		}
		seat.add(user);
		return false;
	}

	public void removeUser(User user) {

	}

	public void Start(User user) {

	}

	public void Pause(User user) {

	}

	public void resume(User user) {

	}

	public void run() {

	}

	public int getGameID() {
		return gameID;
	}

	public void setGameID(int gameID) {
		this.gameID = gameID;
	}

	public int getUserCount() {
		return seat.size();
	}

	public int getMaxUserCount() {
		return maxCount;
	}
}
